.class public Lcom/xingbook/ui/a/e;
.super Lcom/xingbook/ui/a/c;


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "ViewConstructor"
    }
.end annotation


# instance fields
.field private n:Lcn/a/a/b/c;

.field private o:[Landroid/graphics/drawable/BitmapDrawable;

.field private p:I

.field private q:Landroid/widget/ImageView;

.field private r:Lcom/xingbook/d/a;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/xingbook/ui/b/a;Lcn/a/a/b/b;Lcom/xingbook/c/e;Lcom/xingbook/d/a;)V
    .locals 6

    invoke-direct {p0, p1, p2, p3, p4}, Lcom/xingbook/ui/a/c;-><init>(Landroid/content/Context;Lcom/xingbook/ui/b/a;Lcn/a/a/b/b;Lcom/xingbook/c/e;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/ui/a/e;->r:Lcom/xingbook/d/a;

    iput-object p5, p0, Lcom/xingbook/ui/a/e;->r:Lcom/xingbook/d/a;

    check-cast p3, Lcn/a/a/b/c;

    iput-object p3, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    const/4 v0, 0x3

    new-array v0, v0, [Landroid/graphics/drawable/BitmapDrawable;

    iput-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v0}, Lcn/a/a/b/c;->n()Lcn/a/a/d/a;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v1}, Lcn/a/a/b/c;->t()Z

    move-result v1

    if-eqz v1, :cond_0

    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/ui/a/e;->q:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->q:Landroid/widget/ImageView;

    sget-object v2, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->q:Landroid/widget/ImageView;

    iget v2, v0, Lcn/a/a/d/a;->c:I

    iget v3, v0, Lcn/a/a/d/a;->d:I

    iget v4, v0, Lcn/a/a/d/a;->c:I

    iget v5, v0, Lcn/a/a/d/a;->a:I

    add-int/2addr v4, v5

    iget v5, v0, Lcn/a/a/d/a;->b:I

    iget v0, v0, Lcn/a/a/d/a;->d:I

    add-int/2addr v0, v5

    invoke-virtual {v1, v2, v3, v4, v0}, Landroid/widget/ImageView;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->q:Landroid/widget/ImageView;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/a/e;->addView(Landroid/view/View;)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v0}, Lcn/a/a/b/c;->u()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v0}, Lcn/a/a/b/c;->o()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    const-string v1, ""

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v1}, Lcn/a/a/b/c;->q()Lcn/a/a/j;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v2}, Lcn/a/a/b/c;->p()Lcn/a/a/d/a;

    move-result-object v2

    new-instance v3, Landroid/widget/TextView;

    invoke-direct {v3, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    invoke-static {v3, v1, p4, p1, v3}, Lcom/xingbook/ui/a/s;->a(Landroid/widget/TextView;Lcn/a/a/j;Lcom/xingbook/c/e;Landroid/content/Context;Landroid/view/View;)V

    invoke-virtual {v3, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget v0, v2, Lcn/a/a/d/a;->c:I

    iget v1, v2, Lcn/a/a/d/a;->d:I

    iget v4, v2, Lcn/a/a/d/a;->c:I

    iget v5, v2, Lcn/a/a/d/a;->a:I

    add-int/2addr v4, v5

    iget v5, v2, Lcn/a/a/d/a;->b:I

    iget v2, v2, Lcn/a/a/d/a;->d:I

    add-int/2addr v2, v5

    invoke-virtual {v3, v0, v1, v4, v2}, Landroid/widget/TextView;->layout(IIII)V

    invoke-virtual {p0, v3}, Lcom/xingbook/ui/a/e;->addView(Landroid/view/View;)V

    :cond_1
    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/ui/a/e;->p:I

    return-void
.end method


# virtual methods
.method public a(IZ)V
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    const/4 v2, 0x0

    iget v0, p0, Lcom/xingbook/ui/a/e;->p:I

    if-eq p1, v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aget-object v0, v0, p1

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aget-object v0, v0, v2

    if-eqz v0, :cond_1

    :cond_0
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x10

    if-lt v0, v1, :cond_5

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aget-object v0, v0, p1

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aget-object v0, v0, v2

    :goto_0
    invoke-virtual {p0, v0}, Lcom/xingbook/ui/a/e;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :cond_1
    :goto_1
    iput p1, p0, Lcom/xingbook/ui/a/e;->p:I

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->b:Lcom/xingbook/ui/b/a;

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v1}, Lcn/a/a/b/c;->j()I

    move-result v1

    iget v2, p0, Lcom/xingbook/ui/a/e;->p:I

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/ui/b/a;->c(II)V

    :cond_2
    if-eqz p2, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v0}, Lcn/a/a/b/c;->v()Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v0}, Lcn/a/a/b/c;->s()Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v0}, Lcn/a/a/b/c;->w()Z

    move-result v0

    if-nez v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->b:Lcom/xingbook/ui/b/a;

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v1}, Lcn/a/a/b/c;->j()I

    move-result v1

    iget-object v2, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v2}, Lcn/a/a/b/c;->y()I

    move-result v2

    invoke-virtual {v0, p1, v1, v2}, Lcom/xingbook/ui/b/a;->a(III)V

    :cond_3
    return-void

    :cond_4
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aget-object v0, v0, p1

    goto :goto_0

    :cond_5
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aget-object v0, v0, p1

    if-nez v0, :cond_6

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aget-object v0, v0, v2

    :goto_2
    invoke-virtual {p0, v0}, Lcom/xingbook/ui/a/e;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_1

    :cond_6
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aget-object v0, v0, p1

    goto :goto_2
.end method

.method public c()V
    .locals 8
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    const/4 v7, 0x1

    const/4 v6, 0x0

    const/4 v5, 0x2

    const/4 v4, 0x0

    invoke-super {p0}, Lcom/xingbook/ui/a/c;->c()V

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->r:Lcom/xingbook/d/a;

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v1}, Lcn/a/a/b/c;->a()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->j(I)Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_3

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    new-instance v2, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {p0}, Lcom/xingbook/ui/a/e;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-direct {v2, v3, v0}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V

    aput-object v2, v1, v4

    :goto_0
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->r:Lcom/xingbook/d/a;

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v1}, Lcn/a/a/b/c;->b()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->j(I)Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_4

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    new-instance v2, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {p0}, Lcom/xingbook/ui/a/e;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-direct {v2, v3, v0}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V

    aput-object v2, v1, v7

    :goto_1
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->r:Lcom/xingbook/d/a;

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v1}, Lcn/a/a/b/c;->l()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->j(I)Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_5

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    new-instance v2, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {p0}, Lcom/xingbook/ui/a/e;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-direct {v2, v3, v0}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V

    aput-object v2, v1, v5

    :goto_2
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->q:Landroid/widget/ImageView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->r:Lcom/xingbook/d/a;

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v1}, Lcn/a/a/b/c;->m()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/xingbook/d/a;->j(I)Landroid/graphics/Bitmap;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/a/e;->q:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    iget v1, p0, Lcom/xingbook/ui/a/e;->p:I

    aget-object v0, v0, v1

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aget-object v0, v0, v4

    if-eqz v0, :cond_2

    :cond_1
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x10

    if-lt v0, v1, :cond_7

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    iget v1, p0, Lcom/xingbook/ui/a/e;->p:I

    aget-object v0, v0, v1

    if-nez v0, :cond_6

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aget-object v0, v0, v4

    :goto_3
    invoke-virtual {p0, v0}, Lcom/xingbook/ui/a/e;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :cond_2
    :goto_4
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->b:Lcom/xingbook/ui/b/a;

    iget v1, p0, Lcom/xingbook/ui/a/e;->d:I

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/b/a;->d(I)I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_a

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v0}, Lcn/a/a/b/c;->x()Z

    move-result v0

    if-eqz v0, :cond_9

    invoke-virtual {p0, v5, v4}, Lcom/xingbook/ui/a/e;->a(IZ)V

    :goto_5
    return-void

    :cond_3
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aput-object v6, v0, v4

    goto/16 :goto_0

    :cond_4
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aput-object v6, v0, v7

    goto :goto_1

    :cond_5
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aput-object v6, v0, v5

    goto :goto_2

    :cond_6
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    iget v1, p0, Lcom/xingbook/ui/a/e;->p:I

    aget-object v0, v0, v1

    goto :goto_3

    :cond_7
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    iget v1, p0, Lcom/xingbook/ui/a/e;->p:I

    aget-object v0, v0, v1

    if-nez v0, :cond_8

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    aget-object v0, v0, v4

    :goto_6
    invoke-virtual {p0, v0}, Lcom/xingbook/ui/a/e;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_4

    :cond_8
    iget-object v0, p0, Lcom/xingbook/ui/a/e;->o:[Landroid/graphics/drawable/BitmapDrawable;

    iget v1, p0, Lcom/xingbook/ui/a/e;->p:I

    aget-object v0, v0, v1

    goto :goto_6

    :cond_9
    invoke-virtual {p0, v4, v4}, Lcom/xingbook/ui/a/e;->a(IZ)V

    goto :goto_5

    :cond_a
    invoke-virtual {p0, v0, v4}, Lcom/xingbook/ui/a/e;->a(IZ)V

    goto :goto_5
.end method

.method public d()V
    .locals 0

    invoke-super {p0}, Lcom/xingbook/ui/a/c;->d()V

    return-void
.end method

.method public drawableStateChanged()V
    .locals 8

    const v7, 0x10100a7

    const/4 v6, 0x2

    const/4 v0, 0x0

    const/4 v1, 0x1

    invoke-virtual {p0}, Lcom/xingbook/ui/a/e;->getDrawableState()[I

    move-result-object v3

    iget-object v2, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v2}, Lcn/a/a/b/c;->r()Z

    move-result v2

    if-eqz v2, :cond_3

    array-length v4, v3

    move v2, v0

    :goto_0
    if-lt v2, v4, :cond_1

    :goto_1
    invoke-virtual {p0, v0, v1}, Lcom/xingbook/ui/a/e;->a(IZ)V

    :cond_0
    :goto_2
    return-void

    :cond_1
    aget v5, v3, v2

    if-ne v5, v7, :cond_2

    move v0, v1

    goto :goto_1

    :cond_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_3
    array-length v4, v3

    move v2, v0

    :goto_3
    if-ge v2, v4, :cond_0

    aget v5, v3, v2

    if-ne v5, v7, :cond_6

    iget v2, p0, Lcom/xingbook/ui/a/e;->p:I

    if-eq v2, v6, :cond_4

    invoke-virtual {p0, v6, v1}, Lcom/xingbook/ui/a/e;->a(IZ)V

    goto :goto_2

    :cond_4
    iget-object v2, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v2}, Lcn/a/a/b/c;->v()Z

    move-result v2

    if-eqz v2, :cond_5

    iget-object v2, p0, Lcom/xingbook/ui/a/e;->n:Lcn/a/a/b/c;

    invoke-virtual {v2}, Lcn/a/a/b/c;->w()Z

    move-result v2

    if-eqz v2, :cond_0

    :cond_5
    invoke-virtual {p0, v0, v1}, Lcom/xingbook/ui/a/e;->a(IZ)V

    goto :goto_2

    :cond_6
    add-int/lit8 v2, v2, 0x1

    goto :goto_3
.end method

.method public e()V
    .locals 0

    invoke-super {p0}, Lcom/xingbook/ui/a/c;->e()V

    return-void
.end method

.method public f()V
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->q:Landroid/widget/ImageView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/a/e;->q:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    :cond_0
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x10

    if-lt v0, v1, :cond_1

    invoke-virtual {p0, v2}, Lcom/xingbook/ui/a/e;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    invoke-super {p0}, Lcom/xingbook/ui/a/c;->f()V

    return-void

    :cond_1
    invoke-virtual {p0, v2}, Lcom/xingbook/ui/a/e;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0
.end method

.method public g()V
    .locals 0

    invoke-super {p0}, Lcom/xingbook/ui/a/c;->g()V

    return-void
.end method

.method public getmCurrentState()I
    .locals 1

    iget v0, p0, Lcom/xingbook/ui/a/e;->p:I

    return v0
.end method
